package com.fulihui.systemcore.dal.mapper;

import com.fulihui.systemcore.dal.dataobj.VisitRecordDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 * Created by leeson on 2016/6/6.
 */
public interface VisitRecordMapper {
    VisitRecordDO querySingle(Integer id);

    void insert(VisitRecordDO record);

    void update(VisitRecordDO record);

    List<VisitRecordDO> queryPage(@Param("nickName") String nickName, @Param("phone") String phone,
                                  @Param("stratTime") String stratTime,
                                  @Param("endTime") String endTime, @Param("page") int page,
                                  @Param("rows") int rows);

    List<VisitRecordDO> queryAll(@Param("nickName") String nickName, @Param("phone") String phone,
                                 @Param("stratTime") String stratTime,
                                 @Param("endTime") String endTime);

    int queryPageCount(@Param("nickName") String nickName, @Param("phone") String phone,
                       @Param("stratTime") String stratTime, @Param("endTime") String endTime);
}
